package com.hehao.java_basic.design_mode.creational.simpleFactory;

/**
 * @author Damon
 * @date 2023/09/13/21:29
 */
public class ShapeFactoryDemo {
    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();
        Shape circle = shapeFactory.getShape("circle");
        circle.draw();
        Shape rectangle = shapeFactory.getShape("rectangle");
        rectangle.draw();
    }
}
